package xyz.zq.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.zq.service.DemoFeignService;

@RestController
@AllArgsConstructor
public class DemoController {

    private DemoFeignService demoFeignService;


    /**
     * feign 调用服务
     *
     * @param name
     * @return
     */
    @GetMapping("/test")
    public String test(String name) {
        return demoFeignService.demo(name);
    }


}
